/* File : example.c */
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "example.h"

#define RE_WGS84    6378137.0           /* earth semimajor axis (WGS84) (m) */
#define FE_WGS84    (1.0/298.257223563) /* earth flattening (WGS84) */

int the_answer = 42;

int print_str(char* s, int siz)
{
	printf("s  : %s\n", s);
	printf("siz: %d\n", siz);
}

void capital_str(char* s)
{
	s[0] = (s[0] >= 'a' && s[0] <= 'z') ? s[0] - 0x20 : s[0];
}

void revert_uchar_array(unsigned char* s, int siz)
{
	int i,j;
	unsigned char temp;
	for(i = 0, j = siz - 1; i < j; i++, j--)
	{
		temp = s[i];
		s[i] = s[j];
		s[j] = temp;
	}
}
